import service from '@/utils/request.js'
// axios发送请求后,得到数据,promise.then方法,或者async

// catalog/list 一级分类的数据请求
export const CategoryListApi = () => {
    return service({
        method: 'GET',
        url: '/catalog/list',

    })
}
export const CategoryRightApi = (cat_id) => {
    return service({
        method: 'GET',
        url: '/catalog/list/' + cat_id,

    })
}


// /catalog/goodslist

export const CategoryGoodsListApi = (data) => {
    return service({
        method: 'POST',
        url: '/catalog/goodslist',
        // data: data
        data
    })
};